import request from '@/utils/request'

// 查询里程信息列表
export function listMileageInfo(query) {
  return request({
    url: '/passengers/mileageInfo/list',
    method: 'get',
    params: query
  })
}

// 查询里程信息详细
export function getMileageInfo(id) {
  return request({
    url: '/passengers/mileageInfo/' + id,
    method: 'get'
  })
}

// 新增里程信息
export function addMileageInfo(data) {
  return request({
    url: '/passengers/mileageInfo',
    method: 'post',
    data: data
  })
}

// 修改里程信息
export function updateMileageInfo(data) {
  return request({
    url: '/passengers/mileageInfo',
    method: 'put',
    data: data
  })
}

// 删除里程信息
export function delMileageInfo(id) {
  return request({
    url: '/passengers/mileageInfo/' + id,
    method: 'delete'
  })
}
